<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta charset="UTF-8"/>
		<title>Liste des utilisateurs</title>
	</head>

	<body>
		<form action="ajout.php" method="post">
			<table border="1" width="800">
				<tr>
					<th>Nom</th>
					<th>Prenom</th>
					<th>Email</th>
					<th>Type</th>
					<th>Actions</th>
				</tr>
			<?php
				while($user = mysqli_fetch_array($userList)){
					echo "<tr>";
					echo "<td>".$user['nom']."</td>";
					echo "<td>".$user['prenom']."</td>";
					echo "<td>".$user['email']."</td>";
					echo "<td>".$user['libelle']."</td>";
					echo "<td><a href='delete.php?id=".$user['id']."'>Supprimer</a> <a href='editer.php?id=".$user['id']."'>Modifier</a> </td>";
					echo "</tr>";
				}
				?>
				<tr>
					<td colspan="5" align="center">
						<input type="submit" name="ajouter" value ="Ajouter" />
					</td>
				</tr>
			</table>
		</form>

	</body>
</html>












